<?php
/**
 * Created by PhpStorm.
 * User: boye009
 * Date: 2016/3/14
 * Time: 15:32
 */

namespace Test\Controller;



class TesttestController extends TestController{


    public function index(){


        $cart_ids = "8";
        $cart_ids = explode(',',$cart_ids);
        $price = 0;
        $address_id = 23;
        $uid = 7;

        foreach($cart_ids as $vo){
            $result = apiCall("Api/Freight/calc",array($vo,$address_id,$uid),'Domain');
            if($result['status']){
                $price += $result['info'];

            }else{
                dump($result['info']);
                break;

            }
        }
        echo $price;

    }

    public function qr(){
        $this -> display();
    }

}